package com.sunwayworld.baseline.feishu.resource;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping(value = "/feishu")
public interface FeishuAuthCheck {

    @RequestMapping(value = "/login-check")
    String feishuLoginCheck(@RequestParam(value = "code", required = false) String code, @RequestParam(value = "state", required = false) String state);

    @RequestMapping(value = "/bind-feishu-account")
    String bindFeishuAccount(@RequestParam(value = "code", required = false) String code, @RequestParam(value = "state", required = false) String state);

    @GetMapping(value = "/feishu-login-config")
    JSONObject getFeishuLoginConfig();
}
